//
//  LGReportHolderFooterView.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2023/9/1.
//

#import "LGReportHolderFooterView.h"
@interface LGReportHolderFooterView()
/**   */
@property (nonatomic , strong)UIView *baseView;
/**   */
@property (nonatomic , strong)UIView *formView;
/**   */
@property (nonatomic , strong)UIView *segmentView;

@end

@implementation LGReportHolderFooterView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.clipsToBounds = YES;
        self.backgroundColor = [UIColor clearColor];
        [self addSubview:self.baseView];
        [self.baseView addSubview:self.formView];
        [self.baseView addSubview:self.segmentView];

    }
    return self;
}

-(UIView *)baseView{
    if(!_baseView){
        _baseView = [UIView shadowViewWithColor:@"#B3C5D9" offset:CGSizeMake(0, 2) opacity:0.1 radius:15];
        _baseView.frame = CGRectMake(viewPix(16), -viewPix(10), Screen_W-viewPix(32), viewPix(33));
        _baseView.backgroundColor = [UIColor whiteColor];
    }
    return _baseView;
}

-(UIView *)formView{
    if(!_formView){
        _formView = [[UIView alloc] initWithFrame:CGRectMake(viewPix(12), 0, Screen_W-viewPix(56), viewPix(17))];
        _formView.layer.borderColor = [UIColor colorWithString:@"#E0E0E0"].CGColor;
        _formView.layer.borderWidth = 1.0;
        _formView.cornerRidus = 7;
    }
    return _formView;
}

-(UIView *)segmentView{
    if(!_segmentView){
        _segmentView = [[UIView alloc] initWithFrame:CGRectMake((Screen_W-viewPix(56))/2.0, 0, 0.5, viewPix(17))];
        _segmentView.backgroundColor = [UIColor colorWithString:@"#E0E0E0"];
    }
    return _segmentView;
}


@end
